import request from '@/utils/request'

// 查询车辆出入列表
export function listTcCarInOut(query) {
  return request({
    url: '/energy/tcCarInOut/list',
    method: 'get',
    params: query
  })
}

// 查询车辆出入详细
export function getTcCarInOut(id) {
  return request({
    url: '/energy/tcCarInOut/' + id,
    method: 'get'
  })
}

// 新增车辆出入
export function addTcCarInOut(data) {
  return request({
    url: '/energy/tcCarInOut',
    method: 'post',
    data: data
  })
}

// 修改车辆出入
export function updateTcCarInOut(data) {
  return request({
    url: '/energy/tcCarInOut',
    method: 'put',
    data: data
  })
}

// 删除车辆出入
export function delTcCarInOut(id) {
  return request({
    url: '/energy/tcCarInOut/' + id,
    method: 'delete'
  })
}
